<?php
class quoteEngine{
    function get_quote(){
        $connect = new mysqli(DB_HOST,DB_USER,DB_PASS,DB_NAME);
        $query = $connect->query("SELECT quote, author FROM ".$prefix."quotes ORDER BY RAND() LIMIT 0, 1");
        while($row = $query->fetch_object()){
            $this->randomQuote[] = array(
                "quote" => $row->quote,
                "author" => $row->author
            );
        }
        return $this->randomQuote;
        $query->close();
        $connect->close();
    }
}
?>
